<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@page errorPage="error.jsp" %>
<html>
<head>
    <title>用户信息保存</title>
</head>
<body>
<jsp:useBean id="userBean" scope="session" class="Bean.UserBean"/>
<jsp:setProperty name="userBean" property="xing" param="xing"/>
<jsp:setProperty name="userBean" property="ming" param="ming"/>
<%
    if(session.getAttribute("UserBean")==null) response.sendRedirect("http://localhost:8080/infor.jsp");
    else{
        System.out.println("正在保存用户修改信息!");
        userBean.save();
        response.sendRedirect("http://localhost:8080/infor.jsp");
    }
%>
</body>
</html>
